import * as THREE from "three";
/**
*lng:经度
*lat:维度
*radius:地球半径
*/
export const lglt2xyz = (lng: number, lat: number, radius: number) => {
    const theta = (90 + lng) * (Math.PI / 180)
    const phi = (90 - lat) * (Math.PI / 180)
    return (new THREE.Vector3()).setFromSpherical(new THREE.Spherical(radius, phi, theta))
}